Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: changed warn to error in ems for key/labels #1981

Merged
merged 5 commits into from
Apr 25, 2023
Merged

Conversation

Hardikl
Copy link
Contributor

@Hardikl Hardikl commented Apr 24, 2023

Changes:

  • Warn to Error for instanceKey missing
  • Warn to Error for instanceLabel missing

@Hardikl
Copy link
Contributor Author

Hardikl commented Apr 24, 2023

Issuing Ems instancekey is: -index-issuingems-bookendkeys
Resolving Ems instanceKey is: bookendkey
Finding issuing ems from resolving is: GetInstancesBySuffix(bookendkeys)

That's why changing order of Hyphen break the workflow., Reverted to as-is.

cgrinds
cgrinds previously approved these changes Apr 24, 2023
cgrinds
cgrinds previously approved these changes Apr 25, 2023
pkg/util/util.go Outdated
@@ -405,3 +406,12 @@ func HasDuplicates(slice []string) bool {

return false
}

func GetSortedKeys(instanceKeyMap map[string]string) []string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given its a util method. name of the var instanceKeyMap could be generic. May be just m is fine. You can als change templating.go in rest to use this method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already done the changes in rest/templating.go

@rahulguptajss rahulguptajss merged commit e73cb2e into main Apr 25, 2023
@rahulguptajss rahulguptajss deleted the hl_ems_change branch April 25, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants